<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="expires" content="<%=new java.util.Date()%>">
        <meta http-equiv="Cache-Control" content="no-cache">
        <meta http-equiv="Pragma" content="no-cache">
        <title>MINERA HOCHSCHILD</title>

        <script type="text/javascript" src="<%=request.getContextPath()%>/js/lib_tree.js"></script>
        <script type="text/javascript" src="<%=request.getContextPath()%>/js/lib_splitter.js"></script>

        <link rel="StyleSheet" href="<%=request.getContextPath()%>/css/lib_tree.css" type="text/css" />
        <link rel="stylesheet" href="<%=request.getContextPath()%>/css/lib_panel.css" media="screen" type="text/css">
        <link rel="StyleSheet" href="<%=request.getContextPath()%>/css/lib_splitter.css" type="text/css" />
        <link rel="stylesheet" href="<%=request.getContextPath()%>/css/jquery/cupertino/jquery-ui-1.8.13.custom.css" type="text/css" />
        <link rel="StyleSheet" href="<%=request.getContextPath()%>/css/loading.css" type="text/css" />
        <link rel="StyleSheet" href="<%=request.getContextPath()%>/css/tooltip.css" type="text/css" />

        <script type="text/javascript">

            <%
                String cerrar = request.getParameter("cerrar");
            %>
            <%if (cerrar != null) {%>
                fn_cerrar_session('<%=cerrar%>');
            <%}%>

                function fn_imprimir(){
                    document.frames.ifr.fn_imprimir();
                }
                function fn_reporte(){
                    document.frames.ifr.fn_reporte('N');
                }
                function fn_reporte_detallado(){
                    document.frames.ifr.fn_reporte('S');
                }
            
                function fn_cerrar_session(cerrar){
                    if(cerrar == '1'){                    
                        parent.frames.location.href = '<%=request.getContextPath()%>/login.do?metodo=logout';
                    }else{
                        location.href = '<%=request.getContextPath()%>/login.do?metodo=logout';
                    } 
                }                

            
        </script>

    </head>

    <body>







        <div id="idLoading" class="loading">
            <div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable ui-resizable mensajeVentana"
                 tabindex="-1" role="dialog" aria-labelledby="ui-dialog-title-dialog-message">
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span id="ui-dialog-title-dialog-message" class="ui-dialog-title">Proceso</span>
                </div>
                <div style="height: 167px; min-height: 109px; width: auto;" class="ui-dialog-content ui-widget-content" id="dialog">
                    <div id="idCargador" class="imgLoading" ><img  src="<%=request.getContextPath()%>/images/loading/loading.gif"/></div>
                    <div id="idMensaje" class="mensajeText" ></div>
                </div>
            </div>
        </div>

        <div id="northContent">
            <jsp:include page="panel_top.jsp" />
        </div>
        <div id="center" align="center" style="height: 100%">
            <jsp:include page="pages/inicio.jsp" />
        </div>
        <script type="text/javascript" src="<%=request.getContextPath()%>/js/lib_panel.js"></script>

    </body>
</html>